<?php

Class PayPageModel extends Model {

    /**
     * 新建一个页面
     * @param type $uid
     * @param type $title
     * @param type $content
     * @param type $days
     * @param type $con_type
     * @return type 
     */
    public function newPage($uid, $title, $content, $days, $con_type = 'gezi') {
        $data = array(
            'user_id'        => $uid,
            'con_id'         => 0,
            'cont_type'      => $con_type,
            'title'          => t($title),
            'content'        => h($content),
            'star_time'      => 0,
            'end_time'       => 0,
            'days'           => $days,
            'article_status' => 0,
            'create_time'    => time(),
        );
        return $this->add($data);
    }

    /**
     * 绑定页面
     * @param type $con_id
     * @param type $id 
     */
    public function conPage($id, $con_id) {
        
    }

}

?>
